<?php
namespace Admin\Controller;

class IndexController extends CommonController {
	public  $exec_comfunc  = 'index';//index,add,edit,delete
    public function index(){
		$this->display();
    }
    //退出登录
	public function logout(){
		session('user_id',null); // 清空当前的session
		$this->success('退出登录成功！',U('Login/index'));
	}
}